package com.ruoyi.attend.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.attend.utils.DateJsonDeserializer;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.beans.Transient;
import java.util.Date;

/**
 * 打卡记录表 a_day_user
 *
 * @author wangxx
 * @date 2018-11-24
 */
@Data
public class DayUser extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	/** 客户id */
	private Integer cardUserId;
	/** 客户姓名 */
	@Excel(name = "客户姓名")
	private String cardUserName;
	/** 操作人姓名 */
	@Excel(name = "课程顾问")
	private String loginName;
	/** 邮箱 */
	private String email;
	/** 电话 */
	@Excel(name = "电话")
	private String phoneNumber;
	/** 性别 */
	@Excel(name = "性别")
	private String sex;
	/** 头像 */
	@Excel(name = "头像")
	private String avatar;
	/** 删除标志（0代表存在 2代表删除 */
	private Integer delFlag;
	/** 登录IP */
	@Excel(name = "登录IP")
	private String loginIp;
	/** 课时数量 */
	@Excel(name = "课时数量")
	private String classCount;
	/** 办卡类型(年卡card_year 半年卡 card_half) */
	@Excel(name = "办卡类型")
	private String cardStyle;
	/** 创建时间 */
	@Excel(name = "创建时间")
	private Date createTime;
	/** 修改时间 */
	@Excel(name = "修改时间")
	private Date updateTime;
	/** 客户卡号 */
	@Excel(name = "客户卡号")
	private String cardId;
	/** 课堂类型 */
	@Excel(name = "课堂类型")
	private String classType;
	@Excel(name = "到期时间")
	@JsonDeserialize(using = DateJsonDeserializer.class)
	private Date pastTime;
	/** 签到表id */
	private String signId;
	/** 备注信息 */
	private String remark;

	//上传
	private String status;
	private String msg;
	private String pathImge;


	@Override
	public Date getUpdateTime() {
		return updateTime;
	}

	@Override
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}



	public String getMsg() {
		return msg;
	}
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}



	public void setMsg(String msg) {
		this.msg = msg;
	}




	public void setCardUserId(Integer cardUserId)
	{
		this.cardUserId = cardUserId;
	}

	public Integer getCardUserId()
	{
		return cardUserId;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public String getEmail()
	{
		return email;
	}
	public void setPhoneNumber(String phoneNumber)
	{
		this.phoneNumber = phoneNumber;
	}

	public String getPhoneNumber()
	{
		return phoneNumber;
	}
	public void setSex(String sex)
	{
		this.sex = sex;
	}

	public String getSex()
	{
		return sex;
	}
	public void setAvatar(String avatar)
	{
		this.avatar = avatar;
	}

	public String getAvatar()
	{
		return avatar;
	}
	public void setDelFlag(Integer delFlag)
	{
		this.delFlag = delFlag;
	}

	public Integer getDelFlag()
	{
		return delFlag;
	}
	public void setLoginIp(String loginIp)
	{
		this.loginIp = loginIp;
	}

	public String getLoginIp()
	{
		return loginIp;
	}
	public void setClassCount(String classCount)
	{
		this.classCount = classCount;
	}

	public String getClassCount()
	{
		return classCount;
	}
	public void setCardStyle(String cardStyle)
	{
		this.cardStyle = cardStyle;
	}

	public String getCardStyle()
	{
		return cardStyle;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCardId(String cardId)
	{
		this.cardId = cardId;
	}

	public String getCardId()
	{
		return cardId;
	}


	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
				.append("cardUserId", getCardUserId())
				.append("cardUserName", getCardUserName())
				.append("loginName", getLoginName())
				.append("email", getEmail())
				.append("phoneNumber", getPhoneNumber())
				.append("sex", getSex())
				.append("avatar", getAvatar())
				.append("delFlag", getDelFlag())
				.append("loginIp", getLoginIp())
				.append("classCount", getClassCount())
				.append("cardStype", getCardStyle())
				.append("createTime", getCreateTime())
				.append("cardId", getCardId())
				.toString();
	}
}
